-- GENERATED SPELL FOR [Wailing Banshee] --


function spell0_10464(pUnit, Event) --@Anti-Magic Shield,n/a--
pUnit:FullCastSpellOnTarget(19645,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10464', 12000, 1)
end

function spell1_10464(pUnit, Event) --@Banshee Curse,n/a--
pUnit:FullCastSpellOnTarget(17105,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10464', 12350, 1)
end

function Sorts_10464(pUnit, Event)
local choix_sorts_10464 = math.random(0, 1)
if choix_sorts_10464 == 0 then
pUnit:RegisterEvent('spell0_10464', 1, 1)
end
if choix_sorts_10464 == 1 then
pUnit:RegisterEvent('spell1_10464', 1, 1)
end
end

function mob10464_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10464', math.random(1500, 3000), 1)
end

function mob10464_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10464_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10464_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10464, 1, 'mob10464_Action')
RegisterUnitEvent(10464, 2, 'mob10464_Leave')
RegisterUnitEvent(10464, 3, 'mob10464_Kill')
RegisterUnitEvent(10464, 4, 'mob10464_Die')
